<template>
  <div class="box">
    <slot name="title"> </slot>
    <slot name="content"> </slot>
    <!-- 具名插槽和匿名插槽同时使用 -->
    <slot></slot>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
.box {
  border: 2px solid #999;
  padding: 10px;
  margin: 10px;
}
</style>
